package com.bmatch.tech;

import com.bmatch.tech.service.impl.DownloadServlet;
import com.bmatch.tech.service.impl.UploadServlet;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletHandler;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )throws Exception
    {
        Server server = new Server(8080);
        ServletHandler handler = new ServletHandler();
        server.setHandler(handler);

        handler.addServletWithMapping(UploadServlet.class,"/*");
        handler.addServletWithMapping(DownloadServlet.class,"/download");

        server.start();
        server.join();
    }
}
